package common.constant;

/**
 * Description: 通用常量类
 *
 * @author Mxc<xc@alicms.com>
 * @date 2021/7/16 13:44
 */
public interface CommonConstants {
    /** 请求头key */
    interface RequestHeaderKey {
        String USER_ID = "userId";
        String LANGUAGE = "language";
        String URI = "uri";

        String ACCEPT_LANGUAGE = "Accept-Language";
        String TOKEN = "Token";
        String ACCESS_CONTROL_EXPOSE_HEADERS = "Access-Control-Expose-Headers";
    }

	/** 状态 */
	interface Status {
		Integer DISABLE = 0;
		Integer ENABLED = 1;
	}

	interface Currency {
	    String USDT = "usdt"; // usdt
    }


	/** 二选一 */
	interface Either {
        Integer FORMER = 1;
        Integer LATTER = 2;
	}

    public interface Content_Type{
        String TEXT_TYPE="text/plain";
        String JSON_TYPE = "application/json";
        String XML_TYPE = "text/xml";
        String HTML_TYPE = "text/html";
        String JS_TYPE = "text/javascript";
        String EXCEL_TYPE = "application/vnd.ms-excel";
    }

    public interface ENCODE {
        String UTF_8 = "UTF-8";
        String ISO_8859_1 = "ISO-8859-1";
        String GB2312 = "GB2312";
        String GET = "GET";
        String POST = "POST";
    }

	interface AreaCode{
	    String CN = "86";
    }

    /** 功能 */
    interface Action {
        Integer OTC = 5;
        Integer WALLET = 6;
    }

    interface Separator {
        String COMMA = ",";
        String COLON = ":";
        String SPACE = " ";
    }
}
